package com.myssoteka.server;

import com.myssoteka.client.MyssotekaService;
import com.myssoteka.shared.FieldVerifier;
import com.myssoteka.shared.dao.BookDao;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

/**
 * The server side implementation of the RPC service.
 */
@SuppressWarnings("serial")
public class MyssotekaServiceImpl extends RemoteServiceServlet implements
		MyssotekaService {

	public String addBook(String title, String author, String publisher, String category) throws IllegalArgumentException {
		BookDao.INSTANCE.add(title, author, publisher, category);
		return "success";
	}

}
